package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 医院耗材管理系统对象 purchase
 * 
 * @author ruoyi
 * @date 2023-03-01
 */
public class Purchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 索引 */
    private Long id;

    /** 采购单编号 */
    @Excel(name = "采购单编号")
    private String cCode;

    /** 采购单名称 */
    @Excel(name = "采购单名称")
    private String cName;

    /** 操作人 */
    @Excel(name = "操作人")
    private String person;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cTime;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private String state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setcCode(String cCode) 
    {
        this.cCode = cCode;
    }

    public String getcCode() 
    {
        return cCode;
    }
    public void setcName(String cName) 
    {
        this.cName = cName;
    }

    public String getcName() 
    {
        return cName;
    }
    public void setPerson(String person) 
    {
        this.person = person;
    }

    public String getPerson() 
    {
        return person;
    }
    public void setcTime(Date cTime) 
    {
        this.cTime = cTime;
    }

    public Date getcTime() 
    {
        return cTime;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cCode", getcCode())
            .append("cName", getcName())
            .append("person", getPerson())
            .append("cTime", getcTime())
            .append("state", getState())
            .append("remark", getRemark())
            .toString();
    }
}
